#!/usr/bin/env bash

2025-03-13 13:57:31.677 DEBUG (MainThread) [custom_components.hisense_ac_plugin.api] params:
9793620883275788
GET /clife-svc/pu/get_device_status_list?timeStamp=1741845451677&version=8.1&languageId=1&timezone=Asia/Shanghai&randStr=3529b59fba987e3d9b040cbd3a9c3f3c&appId=9793620883275788&sourceId=td0010020002dc6cd8659b713507d7d7bc9afb18e42&platformId=5
date: Thu, 13 Mar 2025 05:57:31 GMT
hi-params-encrypt: 9793620883275788

2025-03-13 13:57:31.677 DEBUG (MainThread) [custom_components.hisense_ac_plugin.api] sign: XYayf1uq4ECw4WXDt6ny7oZePnuQHsx79bFYOYYCL5s=
2025-03-13 13:57:31.677 DEBUG (MainThread) [custom_components.hisense_ac_plugin.api] Request details:
2025-03-13 13:57:31.677 DEBUG (MainThread) [custom_components.hisense_ac_plugin.api] URL: https://test-juapitcp4-himit-hmac-auth-336f558544247173.elb.eu-central-1.amazonaws.com/clife-svc/pu/get_device_status_list?timeStamp=1741845451677&version=8.1&languageId=1&timezone=Asia/Shanghai&randStr=3529b59fba987e3d9b040cbd3a9c3f3c&appId=9793620883275788&sourceId=td0010020002dc6cd8659b713507d7d7bc9afb18e42&platformId=5
2025-03-13 13:57:31.677 DEBUG (MainThread) [custom_components.hisense_ac_plugin.api] Method: GET
2025-03-13 13:57:31.677 DEBUG (MainThread) [custom_components.hisense_ac_plugin.api] Headers: {'accessToken': 'ta3SQFGCpIE-_ZFaGjzlw2GhgDsT34bewAPFQUAfa5Vz8EdoLWABMKGDHrkvXYaqH86T2uRhJ01zCQK9piu5dhWNN0WOPnv_UeU_RpY-_zykrtBGi6x3AvIJq_k-ec3y8hDf4vYuMXvHkcp7tEDMMqADNP8WoFLo6cpzDdiwyIwpGaJsA9J0gY6hKm_16BnsHwdxttpRcwGMsBime9TsTjkAf8kmKdozAaFQrZ_Mj9EobW8Z9F3cHeKNA2dk3xOLjNwrwyTpjauwtjgSkTV04-8iSIbj8pEtiygMFo3liDxsCBzYhceJUOMPdAXz62lqXHjfIpBvVKkh4lNTxEWAqTQhi3RUyGOZox1LXU130ALbrAdxRv0Zj3sD8oISx7vAUU_Kl9INDL8sR2wGyI6dGT_Gg', 'hi-params-encrypt': '9793620883275788', 'Date': 'Thu, 13 Mar 2025 05:57:31 GMT', 'Authorization': 'Signature signature="XYayf1uq4ECw4WXDt6ny7oZePnuQHsx79bFYOYYCL5s=", keyId="9793620883275788",algorithm="hmac-sha256", headers="@request-target date hi-params-encrypt"', 'Content-Type': 'application/json', 'Digest': 'SHA-256=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='}
2025-03-13 13:57:32.005 DEBUG (MainThread) [custom_components.hisense_ac_plugin.api] Response details:
2025-03-13 13:57:32.006 DEBUG (MainThread) [custom_components.hisense_ac_plugin.api] Status: 401
2025-03-13 13:57:32.006 DEBUG (MainThread) [custom_components.hisense_ac_plugin.api] Headers: {'Date': 'Thu, 13 Mar 2025 05:57:31 GMT', 'Content-Type': 'text/plain; charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Server': 'JHK'}
2025-03-13 13:57:32.007 DEBUG (MainThread) [custom_components.hisense_ac_plugin.api] Body: {"message":"client request can't be validated"}


curl -k \
-H 'accessToken:ta3SQFGCpIE-_ZFaGjzlw2GhgDsT34bewAPFQUAfa5Vz8EdoLWABMKGDHrkvXYaqH86T2uRhJ01zCQK9piu5dhWNN0WOPnv_UeU_RpY-_zykrtBGi6x3AvIJq_k-ec3y8hDf4vYuMXvHkcp7tEDMMqADNP8WoFLo6cpzDdiwyIwpGaJsA9J0gY6hKm_16BnsHwdxttpRcwGMsBime9TsTjkAf8kmKdozAaFQrZ_Mj9EobW8Z9F3cHeKNA2dk3xOLjNwrwyTpjauwtjgSkTV04-8iSIbj8pEtiygMFo3liDxsCBzYhceJUOMPdAXz62lqXHjfIpBvVKkh4lNTxEWAqTQhi3RUyGOZox1LXU130ALbrAdxRv0Zj3sD8oISx7vAUU_Kl9INDL8sR2wGyI6dGT_Gg' \
-H 'hi-params-encrypt:9793620883275788' \
-H 'Date: Thu, 13 Mar 2025 05:57:31 GMT' \
-H 'Authorization: Signature signature="XYayf1uq4ECw4WXDt6ny7oZePnuQHsx79bFYOYYCL5s=", keyId="9793620883275788",algorithm="hmac-sha256", headers="@request-target date hi-params-encrypt"' \
-H 'Content-Type: application/json' \
-H 'Digest: SHA-256=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=' \
"https://test-juapitcp4-himit-hmac-auth-336f558544247173.elb.eu-central-1.amazonaws.com/clife-svc/pu/get_device_status_list?timeStamp=1741845451677&version=8.1&languageId=1&timezone=Asia/Shanghai&randStr=3529b59fba987e3d9b040cbd3a9c3f3c&appId=9793620883275788&sourceId=td0010020002dc6cd8659b713507d7d7bc9afb18e42&platformId=5"